from django.db import models
from django.contrib import admin
from django.contrib.auth.models import User


class Site(models.Model):
    name = models.CharField(max_length='30')
    pinyin = models.CharField(max_length='120')
    url = models.CharField(max_length='200')
    visit = models.IntegerField(default=0)
    type = models.CharField(max_length="20")

class Useradd(models.Model):
    user = models.ForeignKey(User,unique=True)
    ggg = models.CharField(max_length="20")

class AuthorAdmin(admin.ModelAdmin):
    pass
admin.site.register(Site)
